<template>
	<view class="flex-col page">
	  <view class="flex-col flex-1 group_2">
	    <text class="self-center text_2">艾灸小常识</text>
	    <view class="flex-col self-stretch mt-23-5">
	      <!-- <view class="section_2"></view>
	      <text class="text_3 mt-23-5">
	        艾灸，别称灸疗或灸法，是用艾叶制成的艾条，艾柱，产生的艾热刺激人体穴位或特定部位，通过激发经气的活动来调整人体紊乱的生理生化功能，从而达到防病治病目的的一种治疗方法。艾灸作用机制与针灸有相近之处，并与针灸有相辅相成的治疗作用。具有操作简单、成本低廉，效果显著等诸多优点。
	        <br />
	      </text> -->
		  <!-- <img src="https://ide.code.fun/api/image?token=66505d7e602bd20012633f5f&name=e8d409d492404b0d2c92760de2720f2f.png" alt="" /> -->
		  <rich-text :nodes="content"></rich-text>
	    </view>
	  </view>
	</view>
</template>

<script>
	const app = getApp().globalData;
	export default {
		data() {
			return {
				title: '',
				content: ``,
				id: ''
			}
		},
		onLoad(options){
			this.id = options.id
			this.getDetail()
		},
		methods: {
			getDetail(){
				var _this = this;
				uni.request({
					url: app.post_url + '/aijiu/api.Article/knowledgeInfo',
					data: {
						id: this.id
					},
					header: {
						'content-type': 'application/json'
					},
					method: 'post',
					success(res) {
						if (res.data.code == 1) {
							_this.title = res.data.data.name
							_this.content = res.data.data.content
						}
					},
					fail(res) {
						uni.showToast({
							title: res.data.info,
							icon: 'none'
						})
				
					}
				})
			}
		}
	}
</script>

<style>
	@import "@/common/css/common.css";
	.mt-23-5 {
	  margin-top: 47rpx;
	}
	.page {
	  background-color: #ffffff;
	  width: 100%;
	  overflow-y: auto;
	  overflow-x: hidden;
	  height: 100%;
	}
	.group_2 {
	  /* padding: 34rpx 13rpx 466rpx 34rpx; */
	  padding: 13rpx 34rpx;
	  overflow-y: auto;
	}
	.text_2 {
	  color: #222222;
	  font-size: 48rpx;
	  font-family: PingFang SC;
	  line-height: 46rpx;
	}
	/* .section_2 {
	  margin-right: 19rpx;
	  background-color: #323232;
	  border-radius: 8rpx;
	  height: 368rpx;
	} */
	.text_3 {
	  color: #151515;
	  font-size: 36rpx;
	  font-family: PingFang SC;
	  line-height: 56rpx;
	}

</style>
